package thread;

import java.io.File;

public class ThreadC1 {
    public static void main(String[] args) {
        // 创建线程对象
        Thread t = new Thread(() -> {
            // 要执行的任务
        });
// 启动线程
        t.start();
        System.out.println("主线程继续执行...");

        Thread thread = new Thread() {
            @Override
            public void run() {
                System.out.println("使用匿名内部类创建 Thread 子类对象");
            }
        };
        thread.start();
        thread.start();

        File file = new File("");
        file.length();


    }
}
